package org.gardenXml.di;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.logging.Logger;

public class TestBook {
    private static Logger logger = Logger.getLogger(TestBook.class.getName());
    @Test
    public static void main(String[] args) {
        ApplicationContext context =new ClassPathXmlApplicationContext("bean-di.xml");
        Book book = context.getBean("book",Book.class);
        logger.info("book"+book);
    }
}
